package com.rw.coco.expression.parser.element.enumeration;

import lombok.Getter;

/**
 * 圣杯结果骰
 */
@Getter
public enum Df {
    PLUS("+"),
    MINUS("-"),
    ZERO("0");

    private final String diceStr;

    Df(String diceStr) {
        this.diceStr = diceStr;
    }

    public int weight() {
        if (this == PLUS) {
            return 1;
        } else if (this == MINUS) {
            return -1;
        } else {
            return 0;
        }
    }
}
